//
//  MMTextStyleView.h
//  MemeMaker
//
//  Created by dangthan on 7/15/13.
//  Copyright (c) 2013 soyo. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    REGULAR = 1,
    BOLD,
    ITALIC
}FONTTYPE;

@protocol MMTextStyleDelegate <NSObject>
@optional

- (void) didChangedSize:(CGFloat) textSize andFontType:(FONTTYPE)type;
- (void) didChangedAlignment:(NSTextAlignment) align;
@end


@interface MMTextStyleView : UIView {
    __weak IBOutlet UISlider *sizeSlider;
    
    __weak IBOutlet UILabel *lblSize;
    
    __weak IBOutlet UIImageView *imgFontType;
    __weak IBOutlet UIImageView *imgAlignment;
    CGFloat textSize;
    FONTTYPE type;
}

@property (nonatomic, assign) id <MMTextStyleDelegate> delegate;

@end
